.templates-page {
  padding: 24px;
  background: #f5f5f5;
  min-height: 100vh;
}

.templates-page .page-header {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.templates-page .page-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
  color: #262626;
}

.templates-page .filter-card {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.templates-page .quick-access {
  margin-bottom: 24px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.templates-page .ant-tabs {
  background: #fff;
  padding: 0 24px 24px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.templates-page .ant-tabs-nav {
  margin-bottom: 24px;
}

.templates-page .ant-tabs-tab {
  font-size: 15px;
  padding: 12px 16px;
}

.templates-page .ant-tabs-tab-active {
  font-weight: 600;
}

.templates-page .ant-empty {
  padding: 48px 0;
}

.templates-page .ant-row {
  margin-left: -8px;
  margin-right: -8px;
}

.templates-page .ant-col {
  padding-left: 8px;
  padding-right: 8px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .templates-page {
    padding: 16px;
  }
  
  .templates-page .page-header {
    padding: 16px;
  }
  
  .templates-page .page-header h2 {
    font-size: 20px;
  }
  
  .templates-page .page-header .ant-space {
    flex-direction: column;
    width: 100%;
  }
  
  .templates-page .page-header .ant-btn {
    width: 100%;
  }
  
  .templates-page .filter-card .ant-row {
    flex-direction: column;
  }
  
  .templates-page .filter-card .ant-col {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .templates-page .quick-access {
    overflow-x: auto;
  }
  
  .templates-page .quick-access .ant-space {
    flex-wrap: nowrap;
  }
}

/* 标签样式 */
.templates-page .ant-tag {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.templates-page .ant-tag:hover {
  transform: translateY(-1px);
}

/* 抽屉样式 */
.templates-page .ant-drawer-body {
  padding: 0;
}

.templates-page .ant-drawer-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.templates-page .ant-drawer-title {
  font-size: 18px;
  font-weight: 600;
}

/* 加载状态 */
.templates-page .ant-spin-container {
  min-height: 300px;
}

/* 搜索框样式 */
.templates-page .ant-input-search-large {
  border-radius: 8px;
}

.templates-page .ant-input-search-button {
  border-radius: 0 8px 8px 0;
}

/* 选择器样式 */
.templates-page .ant-select-selector {
  border-radius: 8px;
  height: 40px;
  align-items: center;
}

/* 卡片悬浮效果 */
.templates-page .template-card {
  transition: all 0.3s ease;
}

.templates-page .template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 徽章样式 */
.templates-page .ant-badge-ribbon {
  font-size: 12px;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.templates-page .ant-col {
  animation: fadeIn 0.3s ease forwards;
}

.templates-page .ant-col:nth-child(1) { animation-delay: 0s; }
.templates-page .ant-col:nth-child(2) { animation-delay: 0.05s; }
.templates-page .ant-col:nth-child(3) { animation-delay: 0.1s; }
.templates-page .ant-col:nth-child(4) { animation-delay: 0.15s; }
.templates-page .ant-col:nth-child(5) { animation-delay: 0.2s; }
.templates-page .ant-col:nth-child(6) { animation-delay: 0.25s; }
.templates-page .ant-col:nth-child(7) { animation-delay: 0.3s; }
.templates-page .ant-col:nth-child(8) { animation-delay: 0.35s; }